/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


package com.googlecode.flac4j.format.metadata;


import javax.xml.bind.annotation.XmlTransient;


/**
 *
 * @author Jin Kwon <jinahya at gmail.com>
 */
@XmlTransient
public abstract class AbstractData extends Data {


    /**
     * Creates a new instance.
     *
     * @param blockType blockType
     */
    public AbstractData(final BlockType blockType) {
        super();

        if (blockType == null) {
            throw new NullPointerException("null blockType");
        }

        this.blockType = blockType;
    }


    @Override
    public final BlockType getBlockType() {
        return blockType;
    }


    /** block type. */
    private final BlockType blockType;


}

